package main

import (
	"fmt"
	"os"
	"os/signal"
	"syscall"
	"zxs-talks/controller"
)

func main() {

	go controller.Start()

	sigs := make(chan os.Signal, 1)
	signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
	go func() {
		<-sigs
		fmt.Println("system exit.....")
		os.Exit(0)
	}()
	select {}
}
